﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HowManyNumbersAreSmallerThantheCurrentNumber
{
    public class Solution
    {
        public int[] SmallerNumbersThanCurrent(int[] nums)
        {
            return nums.Select(n => nums.Count(i => i < n)).ToArray();
        }
    }
}
